package com.zhuzhe.blog.category.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhuzhe.blog.base.ResponseData;
import com.zhuzhe.blog.category.entity.Label;
import com.zhuzhe.blog.category.requestDto.LableSerachDto;
import com.zhuzhe.blog.category.responseVo.LabelPageVo;
import com.zhuzhe.blog.category.responseVo.LabelVo;

import java.util.List;

/**
 * <p>
 * 标签表 服务类
 * </p>
 *
 * @author u53
 * @since 2020-09-29
 */
public interface ILabelService extends IService<Label> {

    ResponseData<IPage<LabelPageVo>> queryPage(LableSerachDto request);

    ResponseData<String> updateLabelById(Label entity);

    ResponseData<String> saveLabel(Label label);

    ResponseData<String> removeLabelById(String id);

    ResponseData<LabelVo> getLabelById(String id);

    List<Label> getLabelListByIds(List<String> labelIds);

    List<String> getListIds(String categoryId);
}
